package com.itheima.test;

import java.time.LocalDateTime;

public class Demo_009 {
    public static void main(String[] args) {
        //public static LocalDateTime now()获取当前系统时间
        // public static LocalDateTime of  (年, 月 , 日, 时, 分, 秒)
        // 使用指定年月日和时分秒初始化一个LocalDateTime对象
        LocalDateTime localDateTime = LocalDateTime.now();
        System.out.println(localDateTime);
        LocalDateTime newLocalDateTime = LocalDateTime.of(2020, 7, 1, 19, 8, 01);
        System.out.println(newLocalDateTime);
    }
}
